package com.common.utils;

import java.io.IOException;

import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.Table;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TableUtils {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(TableUtils.class);
	
	public static Table getTable(String tableName) throws IOException 
	{
		LOGGER.debug("getTable name={}", tableName);
		Table table = ConnectionUtils.getConn().getTable(TableName.valueOf(tableName));
		return table;
	}
}
